<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta content="telephone=no" name="format-detection">
    <!-- <meta http-equiv="Expires" content="0">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Cache-control" content="no-cache"> -->
    <title>起始页</title>
    <script src="../../../js/jquery-1.8.3.min.js"></script>
    <script src="../../../js/mobile.js"></script>
    <!-- 根据额外需求引用fix.js -->
    <script src="../js/fix.js"></script>

    <link rel="stylesheet" href="./css/common.css">
</head>
<style>
    html {
        font-size: 625%;
    }

    body {
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        background: #f5f5f5;
    }

    .home-back {
        margin: .7rem .3rem;
        width: .29rem;
        height: .34rem;
        background: url(images/pic3.png);
        background-size: cover;
        display: inline-block;
    }

    .home-btn {
        width: 3.01rem;
        height: .88rem;
        margin: 5rem auto 0 auto;
        background: #2283e2;
        border-radius: .44rem;
        font-size: .2rem;
        color: #fff;
        text-align: center;
        line-height: .88rem;
        display: block;
        text-decoration: none;
    }

    .logo {
        width: .99rem;
        height: .9rem;
        background: url(images/U.png);
        background-size: cover;
        position: absolute;
        bottom: 1rem;
        left: 3.35rem;
    }
</style>
<script>
    $(document).ready(function () {
        var h = $(window).height();
        $(".spinner").css("margin", h / 2 + "px auto");
        var storage = window.localStorage;
        if (storage.length != 0 && Object.keys(JSON.parse(storage.person_info)).length == 5) { //如果缓存不足5项数据
            // $(".loading").removeClass("none");
            window.location.href = "evaluation.html";
        } else {
            $(".show_body").removeClass("none");
            $(".loading").addClass("none");
        }
        $(".start").on("click", function () {
            var href = window.location.href;
            var search = href.split("?")[1];
            var arr = search.split("&");
            var urlObj = {} // 等价于 var urlObj = new Object()
            for (var i = 0; i < arr.length; i++) {
                urlObj[arr[i].split("=")[0]] = arr[i].split("=")[1];
            }
            var person = {};
            urlObj.userId;
            person.userId = urlObj.userId;
            storage.person_info = JSON.stringify(person);
        });
    });
</script>

<body>
    <div class="show_body none">
        <div class="upcore-navbar">
            <span class="upcore-navbar-icon-left" onclick="history.back(-1)"></span>
            <!-- <span class="upcore-navbar-name-span"></span>
                    <span class="upcore-navbar-icon-right disabled"></span> -->
        </div>
        <!-- <div class="home-back" onclick="history.back(-1)"></div> -->
        <a class="home-btn start Regular" href="perfect_info1.html">身体测评</a>
        <div class="logo"></div>
    </div>
    <div class="loading">
        <div class="spinner">
            <div class="rect1"></div>
            <div class="rect2"></div>
            <div class="rect3"></div>
            <div class="rect4"></div>
            <div class="rect5"></div>
        </div>
    </div>
</body>

</html>